import React from 'react';
export default class Item extends React.Component{
   render(){
       const {comments} = this.props;

       return(
           <div className='item'>
               <ul>
                   {comments.map((item,index)=>{
                       return <li className='liItem' key={index}>
                           <span>{item.username}</span>
                           <span>{item.content}</span>
                       </li>
                   })}
               </ul>

           </div>
       )
   }
}